package ai.people.core.grpc.lib.dict;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.42.0)",
    comments = "Source: system/dict.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class DictServiceGrpc {

  private DictServiceGrpc() {}

  public static final String SERVICE_NAME = "dict.DictService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.dict.DictRequest,
      ai.people.core.grpc.lib.dict.DictResponse> getDictListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "dictList",
      requestType = ai.people.core.grpc.lib.dict.DictRequest.class,
      responseType = ai.people.core.grpc.lib.dict.DictResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.dict.DictRequest,
      ai.people.core.grpc.lib.dict.DictResponse> getDictListMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.dict.DictRequest, ai.people.core.grpc.lib.dict.DictResponse> getDictListMethod;
    if ((getDictListMethod = DictServiceGrpc.getDictListMethod) == null) {
      synchronized (DictServiceGrpc.class) {
        if ((getDictListMethod = DictServiceGrpc.getDictListMethod) == null) {
          DictServiceGrpc.getDictListMethod = getDictListMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.dict.DictRequest, ai.people.core.grpc.lib.dict.DictResponse>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "dictList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.dict.DictRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.dict.DictResponse.getDefaultInstance()))
              .setSchemaDescriptor(new DictServiceMethodDescriptorSupplier("dictList"))
              .build();
        }
      }
    }
    return getDictListMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static DictServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<DictServiceStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<DictServiceStub>() {
        @java.lang.Override
        public DictServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new DictServiceStub(channel, callOptions);
        }
      };
    return DictServiceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static DictServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<DictServiceBlockingStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<DictServiceBlockingStub>() {
        @java.lang.Override
        public DictServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new DictServiceBlockingStub(channel, callOptions);
        }
      };
    return DictServiceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static DictServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<DictServiceFutureStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<DictServiceFutureStub>() {
        @java.lang.Override
        public DictServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new DictServiceFutureStub(channel, callOptions);
        }
      };
    return DictServiceFutureStub.newStub(factory, channel);
  }

  /**
   */
  public static abstract class DictServiceImplBase implements io.grpc.BindableService {

    /**
     * <pre>
     **
     * 通过类型查询字典列表
     * &#64;mock wallet_type
     * &#64;param dictType dict类型(&lt;br&gt;wallet_type：钱包类型、&lt;br&gt;archives_social：社交媒体、&lt;br&gt;source_list：信源列表、&lt;br&gt;validity：有效性、&lt;br&gt;importance_deg：重要度
     *                 、&lt;br&gt;collection_status：采集状态、&lt;br&gt;collection_frequency：采集频率、&lt;br&gt;business_type：业务类型、&lt;br&gt;site_type：站点类型、&lt;br&gt;es_index：检索索引
     *                 &lt;br&gt;work_order_state: 工单状态、
     *                 &lt;br&gt;degree_of_danger: 危险程度、
     *                 &lt;br&gt;exp_list: 扩线点关系点
     *                 &lt;br&gt;exp_type: 扩线点类型、
     *                 &lt;br&gt;warning_message_emotion: 情感标签、
     *                 )
     * &#64;return {&#64;link Result}&lt;{&#64;link ListResponse}&lt;{&#64;link SystemDictData}&gt;&gt;
     * </pre>
     */
    public void dictList(ai.people.core.grpc.lib.dict.DictRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.dict.DictResponse> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDictListMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getDictListMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.dict.DictRequest,
                ai.people.core.grpc.lib.dict.DictResponse>(
                  this, METHODID_DICT_LIST)))
          .build();
    }
  }

  /**
   */
  public static final class DictServiceStub extends io.grpc.stub.AbstractAsyncStub<DictServiceStub> {
    private DictServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected DictServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new DictServiceStub(channel, callOptions);
    }

    /**
     * <pre>
     **
     * 通过类型查询字典列表
     * &#64;mock wallet_type
     * &#64;param dictType dict类型(&lt;br&gt;wallet_type：钱包类型、&lt;br&gt;archives_social：社交媒体、&lt;br&gt;source_list：信源列表、&lt;br&gt;validity：有效性、&lt;br&gt;importance_deg：重要度
     *                 、&lt;br&gt;collection_status：采集状态、&lt;br&gt;collection_frequency：采集频率、&lt;br&gt;business_type：业务类型、&lt;br&gt;site_type：站点类型、&lt;br&gt;es_index：检索索引
     *                 &lt;br&gt;work_order_state: 工单状态、
     *                 &lt;br&gt;degree_of_danger: 危险程度、
     *                 &lt;br&gt;exp_list: 扩线点关系点
     *                 &lt;br&gt;exp_type: 扩线点类型、
     *                 &lt;br&gt;warning_message_emotion: 情感标签、
     *                 )
     * &#64;return {&#64;link Result}&lt;{&#64;link ListResponse}&lt;{&#64;link SystemDictData}&gt;&gt;
     * </pre>
     */
    public void dictList(ai.people.core.grpc.lib.dict.DictRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.dict.DictResponse> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getDictListMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class DictServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<DictServiceBlockingStub> {
    private DictServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected DictServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new DictServiceBlockingStub(channel, callOptions);
    }

    /**
     * <pre>
     **
     * 通过类型查询字典列表
     * &#64;mock wallet_type
     * &#64;param dictType dict类型(&lt;br&gt;wallet_type：钱包类型、&lt;br&gt;archives_social：社交媒体、&lt;br&gt;source_list：信源列表、&lt;br&gt;validity：有效性、&lt;br&gt;importance_deg：重要度
     *                 、&lt;br&gt;collection_status：采集状态、&lt;br&gt;collection_frequency：采集频率、&lt;br&gt;business_type：业务类型、&lt;br&gt;site_type：站点类型、&lt;br&gt;es_index：检索索引
     *                 &lt;br&gt;work_order_state: 工单状态、
     *                 &lt;br&gt;degree_of_danger: 危险程度、
     *                 &lt;br&gt;exp_list: 扩线点关系点
     *                 &lt;br&gt;exp_type: 扩线点类型、
     *                 &lt;br&gt;warning_message_emotion: 情感标签、
     *                 )
     * &#64;return {&#64;link Result}&lt;{&#64;link ListResponse}&lt;{&#64;link SystemDictData}&gt;&gt;
     * </pre>
     */
    public ai.people.core.grpc.lib.dict.DictResponse dictList(ai.people.core.grpc.lib.dict.DictRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getDictListMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class DictServiceFutureStub extends io.grpc.stub.AbstractFutureStub<DictServiceFutureStub> {
    private DictServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected DictServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new DictServiceFutureStub(channel, callOptions);
    }

    /**
     * <pre>
     **
     * 通过类型查询字典列表
     * &#64;mock wallet_type
     * &#64;param dictType dict类型(&lt;br&gt;wallet_type：钱包类型、&lt;br&gt;archives_social：社交媒体、&lt;br&gt;source_list：信源列表、&lt;br&gt;validity：有效性、&lt;br&gt;importance_deg：重要度
     *                 、&lt;br&gt;collection_status：采集状态、&lt;br&gt;collection_frequency：采集频率、&lt;br&gt;business_type：业务类型、&lt;br&gt;site_type：站点类型、&lt;br&gt;es_index：检索索引
     *                 &lt;br&gt;work_order_state: 工单状态、
     *                 &lt;br&gt;degree_of_danger: 危险程度、
     *                 &lt;br&gt;exp_list: 扩线点关系点
     *                 &lt;br&gt;exp_type: 扩线点类型、
     *                 &lt;br&gt;warning_message_emotion: 情感标签、
     *                 )
     * &#64;return {&#64;link Result}&lt;{&#64;link ListResponse}&lt;{&#64;link SystemDictData}&gt;&gt;
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.dict.DictResponse> dictList(
        ai.people.core.grpc.lib.dict.DictRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getDictListMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_DICT_LIST = 0;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final DictServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(DictServiceImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_DICT_LIST:
          serviceImpl.dictList((ai.people.core.grpc.lib.dict.DictRequest) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.dict.DictResponse>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class DictServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    DictServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return ai.people.core.grpc.lib.dict.Dict.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("DictService");
    }
  }

  private static final class DictServiceFileDescriptorSupplier
      extends DictServiceBaseDescriptorSupplier {
    DictServiceFileDescriptorSupplier() {}
  }

  private static final class DictServiceMethodDescriptorSupplier
      extends DictServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    DictServiceMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (DictServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new DictServiceFileDescriptorSupplier())
              .addMethod(getDictListMethod())
              .build();
        }
      }
    }
    return result;
  }
}
